﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.controllers.world {
    import net.wooga.pets.events.*;
    import net.wooga.pets.interfaces.*;
    import org.robotlegs.mvcs.*;
    import net.wooga.pets.models.world.*;

    public class AddToQueueCommand extends Command {

		[Inject]
        public var event:InfoEvent;
		[Inject]
        public var worldModel:WorldModel;

        override public function execute():void{
            var _local1:ITreatable = ITreatable(this.event.info);
            var _local2:String = ((this.event.id) || (_local1.currentTreatment.roomType));
            this.worldModel.building.addToQueue(_local2, _local1);
        }

    }
}//package net.wooga.pets.controllers.world 
